﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VirtualTournaments.Services.Tournaments
{
    public class Service2BussinessConversor
    {
       public static IEnumerable<VirtualTournaments.Business.Tournaments.Team> convertTeams(Team[] teams)
       {
           return from servTeam in teams
                  select serviceToBiz(servTeam);
       }

       public static Business.Tournaments.Team serviceToBiz(Team servTeam)
       {
           return new Business.Tournaments.Team(servTeam.Name);
       }
    }
}
